<template>
  <div class="w-full h-full p-3 bg-gray-100">
    <div class="p-3 rounded-md bg-white shadow-sm h-full">
      <div class="flex flex-row justify-between">
        <el-form ref="formRef" :model="form" label-width="80px" size="mini">
          <!-- 给自己挖个坑 下次我来看看能不能自己做点啥-->
          <el-form-item label="玩家ID：">
            <el-input
              placeholder="还没做完 别查了 -Lin"
              v-model="form.name"
            ></el-input>
          </el-form-item>
        </el-form>
        <el-button @click="getInfo()" class="ml-2">fucker~</el-button>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from "vue";
import Axios, { AxiosRequestConfig } from "axios";
const form = ref({
  name: "",
});

// 获取
const getInfo = () => {
  let param: AxiosRequestConfig = {
    method: "get",
    url: "https://www.plazmaburst2.com/?a=&s=7&ac=littlekk&id=1843446",
    withCredentials: true,
    headers: {
      "User-Agent":
        "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1",
    },
  };
  Axios(param)
    .then((response) => {
      console.log(response);
    })
    .catch((err) => {});
};
</script>